package com.core.common.gen;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: kuntail
 * @description: 实体基类
 * @author: honglei
 * @create: 2022-03-10 18:04
 */
@Data
public class BaseQuery {

    /*全局模糊搜索字段*/
    private String searchText;
    // 特殊查询条件集合
    private List<QueryCondition> queryConditions;
    private List<QueryCondition> fuzzySearchConditions=new ArrayList<>();
    //排序集合
    private List<QuerySort> querySorts;

    public void  addCondition(QueryCondition condition){
        if (queryConditions==null){
            queryConditions=new ArrayList<>();
        }
        queryConditions.add(condition);
    }

}
